import { useContext } from "react";
import ContextTO from "./context_js"
const Context_three=()=>{
    const context = useContext(ContextTO)
    console.log('context',context)
    return(
        <div>
            <h1>子组件使用HOOK获取context：</h1>
            <p>
                {
                    context.title
                }
            </p>
        </div>
        
    )
}

export default Context_three